package com.bacon.dao;

import com.bacon.domain.Account;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @author bacon
 * @create 2020-06-22-14:19
 */
@Repository
public interface IAccountDao {

    @Insert("insert into account (name,money) values(#{name},#{money})")
    public void saveAccouont(Account account);

    @Select("select * from account")
    public List<Account> findAll();
}
